package util;

import entity.student;
import mapper.StudentMapper;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class test {
    @Test
    public void test01(){
        try(SqlSession session= myBatisUtil.getSS(true)) {
            StudentMapper mapper = session.getMapper(StudentMapper.class);
            List<student> students = mapper.findAll();
            students.forEach(System.out::println);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
